package net.flyinggroup.scs.gitter.controller.vm;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MessageVM {
    @NotNull
    @NonNull
    private String id;
    @NotNull
    @NonNull
    private String text;
    @NotNull
    @NonNull
    private String html;
    @NotNull
    @NonNull
    private String username;
    @NotNull
    @NonNull
    private String userAvatarUrl;
    @NotNull
    @NonNull
    private Date sent;
}
